<script language="javascript" >
function dt_start(obj){
	//alert('aaa');
 var today=new Date();
   var display_value =" Time= " + today.getHours();
   
   	  
   if(today.getMinutes() < 10){
      display_value+=":0" + today.getMinutes();
   }
   else{
      display_value+=":" + today.getMinutes();
   }
   if (today.getSeconds() < 10){
      display_value+=":0" + today.getSeconds();
   }
   else{
      display_value+=":" + today.getSeconds();
   }
   if(today.getHours()>=12){
      display_value+=" P.M."
      /* Here we have a variable called mygreeting where
         you can store somthing like this:
         mygreeting ="Good Morning!"; */
   }
   else{
      display_value+=" A.M."
      /* Now set mygreeting to:
         mygreeting ="Good Afternoon!"; */
   }

	display_value += " Date= " + (today.getMonth()+1) + "/"  +
      today.getDate() + "/" + today.getYear();
      document.frm_clock.dt.value=display_value;
	  //document.getElementById('dt_update').innerHTML = display_value;
      timerID=setTimeout("dt_start()",100);







}
</script>

<form id="frm_clock" name="frm_clock">
<input type="text" name="dt" value=" -><-" >
<input type="button" onClick="dt_start(this);"  value="Start">
</form>	
